package com.example.mybatisstudy.model;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;
import java.util.List;

@Getter
@Setter
@ToString
public class Userinfo {
    private Integer id;
    private String username;
    private String password;
    private String photo;
    private Date createtime;
    private Date updatetime;
    private Integer state;

    //建立用户到文章，一对多的关系
    private List<Articleinfo> articles;
}
